import 'package:cms/pages/home/tabs.dart';
import 'package:cms/state/lara_press_cms/lara_press_cms_cubit.dart';
import 'package:cms/state/lara_press_cms/lara_press_cms_state.dart';
import 'package:common/export/bloc.dart';
import 'package:common/export/get_it.dart';

import 'package:flutter/material.dart';

class LaraPressCmsHomePage extends StatelessWidget {
  const LaraPressCmsHomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return BlocProvider(
      create: (BuildContext context) => laraPressGetIt<LaraPressCmsCubit>(),
      child: Builder(builder: (context) => _buildPage(context)),
    );
  }

  Widget _buildPage(BuildContext context) {
    return BlocBuilder<LaraPressCmsCubit, LaraPressCmsState>(
      builder: (context, state) {
        return CmsHomeTabs();
      },
    );
  }
}
